<%@page pageEncoding="UTF-8" language="java" %>
<%@ include file="/commons/global.jsp"%>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="favicon.ico" >
<link rel="Shortcut Icon" href="favicon.ico" />
<script type="text/javascript" src="<%=request.getContextPath()%>/static/lib/respond.min.js"></script>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/h-ui.admin/css/style.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/css/style.css" />
<style type="text/css">
	.table-sort tr td{
	    text-align: center;
	}
	.dataTable td.sorting_1{
		background-color: inherit;
	}
	.mt_right {
    width: 100%;
}
</style>
</head>
<body>
<article class="page-container">
	<form class="form form-horizontal"  id="courseForm">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">专业编号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text"  placeholder="" id="code" name="code" value="${trainPlan.major.code }" readonly="readonly">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">专业名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text"  placeholder="" id="name" name="name" value="${trainPlan.major.name }" readonly="readonly">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">学制：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text"  placeholder="" id="term" name="term" value="${trainPlan.term }年" readonly="readonly">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">学期：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text"  placeholder="" id="term2 " name="term2 " value="${trainPlan.term*2 }学期" readonly="readonly">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">学分：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text"  placeholder="" id="score" name="score" value="${trainPlan.score }" readonly="readonly">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">培养目标：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<textarea cols="" rows="" class="textarea" name="goal"  readonly="readonly">${trainPlan.goal }</textarea>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">应获知识与能力：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<textarea cols="" rows="" class="textarea" name="ability"  readonly="readonly">${trainPlan.ability }</textarea>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">所学课程：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<c:if test="${trainDetailList == null or trainDetailList.size() == 0 }">
					<textarea cols="" rows="" class="textarea" name="course"  readonly="readonly">
						无记录.
					</textarea>
				</c:if>
				<c:if test="${trainDetailList != null and trainDetailList.size() > 0 }">
					<div class="formControls col-xs-8 col-sm-9">
						<textarea cols="" rows="" class="textarea" name="course"  readonly="readonly">
							<c:forEach items="${trainDetailList }" var="trainDetail">
								${trainDetail.scheduleVo.course.name}.
							</c:forEach>
						</textarea>
					</div>
				</c:if>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">教学进程：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<table class="table table-border table-bordered table-bg table-hover table-sort">
					<thead>
						<tr class="text-c">
							<th>课程名</th>
							<th>课程编码</th>
							<th>学分</th>
							<th>理论</th>
							<th>实践</th>
							<th>自主</th>
							<th>总计</th>
							<th>考核方式</th>
							<th>第几学期上</th>
						</tr>
					</thead>
					<tbody>
						<c:if test="${trainDetailList == null or trainDetailList.size() == 0 }">
							<tr>
								<td colspan="9">没有记录</td>
							</tr>
						</c:if>
						<c:if test="${trainDetailList != null and trainDetailList.size() > 0 }">
							<c:forEach items="${trainDetailList }" var="trianDetail">
								<tr class="text-c">
									<td>${trianDetail.scheduleVo.course.name }</td>
									<td>${trianDetail.scheduleVo.course.code }</td>
									<td>${trianDetail.scheduleVo.score}</td>
									<td>${trianDetail.scheduleVo.theory}</td>
									<td>${trianDetail.scheduleVo.experiment}</td>
									<td>${trianDetail.scheduleVo.selfmaster}</td>
									<td>${trianDetail.scheduleVo.theory+trianDetail.scheduleVo.experiment+trianDetail.scheduleVo.selfmaster}</td>
									<td>${trianDetail.scheduleVo.examtype}</td>
									<td>${trianDetail.scheduleVo.term}</td>
								</tr>
							</c:forEach>
						</c:if>
					</tbody>
				</table>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">审核意见：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<textarea class="textarea" name="suggestion"  readonly="readonly">${trainPlan.suggestion}
				</textarea>
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button id="cancel" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</article>

<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript" src="<%=request.getContextPath()%>/static/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/static/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/static/h-ui/js/H-ui.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/static/h-ui.admin/js/H-ui.admin.page.js"></script>
<script type="text/javascript">
	$(function(){
		$("#cancel").click(function(){
			parent.layer.close(parent.index);
		});
	});
</script>
</body>
</html>